package com.tf.temper.service.impl;


import com.tf.temper.dao.LoghbDao;
import com.tf.temper.entity.LoghbEntity;
import com.tf.temper.service.LoghbService;
import org.springframework.stereotype.Service;
import java.util.Map;
import java.util.List;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.ccssoft.m8.common.ccssoft.modules.util.EntityWrapperHandle;
import com.ccssoft.m8.common.ccssoft.modules.util.PageUtils;
import com.ccssoft.m8.common.ccssoft.modules.util.Query;


@Service("loghbService")
public class LoghbServiceImpl extends ServiceImpl<LoghbDao, LoghbEntity> implements LoghbService<LoghbEntity>
{
    public PageUtils<LoghbEntity> queryPage(Map<String, Object> params)
    {
        EntityWrapperHandle<LoghbEntity> ew = new EntityWrapperHandle<LoghbEntity>(params);
        Page<LoghbEntity> page = this.selectPage(new Query<LoghbEntity>(params).getPage(),ew);
        page.setTotal(this.selectCount(ew));
        return new PageUtils<LoghbEntity>(page);
    }

    public List<LoghbEntity> queryPageByLike(Map<String, Object> params)
    {
        return baseMapper.queryPageByLike(params);
    }
}
